import type { ProfileDetail, ProfileParam } from '@/types/member'
import { http } from '@/utils/http'
// 获取个人信息
export const getProfileAPI = () => {
    return http<ProfileDetail>({
        method: 'GET',
        url: '/member/profile',
    })
}

// 修改个人信息
export const putMemberProfileAPI = (data: ProfileParam) => {
    return http<ProfileDetail>({
        method: 'PUT',
        url: '/member/profile',
        data,
    })
}